package edu.mtu.citizenscience.mushroommapper.activity.main.settings;

import edu.mtu.citizenscience.mushroommapper.activity.R;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
/**
 * @author Corbin Uselton <corbinu@cwuselto@mtu.edu>
 * @copyright (c) 2012 MichiganTech <http://www.mtu.edu>
 * @since 1.0
 * 
 * Login dialog for displaying to the user that the
 * app is currently logging in on the citsci server
 */
public class LoginDialog extends DialogFragment {
	
	/**
	 * Login Dialog creation handler
	 * 
	 * @param   savedInstanceState - Bundle - Bundle with launch info
	 * @return	void
	 */
	@Override
    public void onCreate(Bundle savedInstanceState) 
	{
        super.onCreate(savedInstanceState);
        
        // remove the title bar from this dialog
        this.setStyle(DialogFragment.STYLE_NO_TITLE, 0);
    }
	
	/**
	 * Create view for the Login Dialog
	 * 
	 * @param inflater - LayoutInflater - for inflating views
	 * @param container - ViewGroup - the dialogs view container
	 * @param savedInstanceState - Bundle - Bundle with launch info
	 * @return View - the View for the fragment's UI, or null
	 */
	@Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) 
    {
		// inflate the login dialog view and return it
        return inflater.inflate(R.layout.login_dialog, container, false);
    }
	
}
